package cn.sm1234.controller;

import org.springframework.scheduling.support.SimpleTriggerContext;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Controller
public class UserController {

    // 展示列表
    @RequestMapping("/demo1")
    public String domo1(Model model){
        // 把数据存入模型model, 用作传递
        model.addAttribute("message", "hello, Thymeleaf");

        // 跳转到demo1.html, 放在templates下
        return "demo1";
    }

}
